﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ListInfo.aspx.cs" Inherits="CardLogistics.Web.MainPage.PutOutCard.PutOutSendCard.ListInfo" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="../../../Controls/WebUserControl_Nav.ascx" TagName="WebUserControl_Nav"
    TagPrefix="uc1" %>
<%@ Register Src="../../../Controls/WebUserControl_ToolBar.ascx" TagName="WebUserControl_ToolBar"
    TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>半成品/成品卡发放</title>
    <link href="../../../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../../../css/selPage.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="../../../js/jquery.js"></script>
    <script src="../../../js/jquery.tipswindow.2.0.js" type="text/javascript"></script>
    <script src="../../../js/valReq.js" type="text/javascript"></script>
    <script src="../../../js/tblistjs.js" type="text/javascript"></script>
    <script src="../../../js/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script language="javascript" type="text/javascript">
        function ShowRpt(strSendNo, strSalesName, strLeadingDate) {
            if (Trim(strSendNo) != "") {
                var pageUrl = "PutOutSendCardDetailed.aspx?";
                pageUrl += "SendNo=" + strSendNo;
                pageUrl += "&SalesName=" + encodeURI(encodeURI(strSalesName));
                pageUrl += "&LeadingDate=" + strLeadingDate;
                window.open(pageUrl);
                return true;
            }
            else {
                alert("请选择您要查看的信息!");
                return false;
            }
        }
    </script>
</head>
<body>
    <form runat="server" id="f2">
    <uc1:WebUserControl_Nav ID="WebUserControl_Nav1" runat="server" />
    <div class="rightinfo">
        <uc2:WebUserControl_ToolBar ID="WebUserControl_ToolBar1" MenuName="半成品/成品卡发放" runat="server" />
        <ul class="seachform">
            <li>
                <label>
                    发放单号</label>
                <asp:TextBox ID="txt_SENDNO" runat="server" CssClass="scinput" Width="100px"></asp:TextBox>
            </li>
            <li>
                <label>
                    出库单号</label>
                <asp:TextBox ID="txt_PUTOUTCARDNO" runat="server" CssClass="scinput" Width="100px"></asp:TextBox>
            </li>
            <li>
                <label>
                    领用日期</label>
                <asp:TextBox ID="txt_StartLEADINGDATE" runat="server" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                    Width="100px"></asp:TextBox>&nbsp;至
                <asp:TextBox ID="txt_EndLEADINGDATE" runat="server" CssClass="Wdate" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd'})"
                    Width="100px"></asp:TextBox>
            </li>
             <li>
                <label>
                    供应商</label>
                <asp:DropDownList ID="ddlsupName" runat="server" CssClass="dfinput" Width="100px">
                </asp:DropDownList>
            </li>
            <li>
                <label>
                   卡片类型</label>
                <asp:DropDownList ID="ddlCardType" class="dfinput" runat="server" Style="width: 80px;">
                </asp:DropDownList>
            </li>
            <li>
            <label>
                   销售机构/网点</label>
                <asp:DropDownList ID="ddlLEADINGUNIT" runat="server" CssClass="dfinput" Width="100px">
                </asp:DropDownList>
            </li>
            <li>
                <label>
                    状态</label>
                <asp:DropDownList ID="ddlIsSubmit" class="dfinput" runat="server" Style="width: 80px;">
                </asp:DropDownList>
            </li>
            <li>
                <label>
                    &nbsp;</label>
                <asp:Button ID="btn_Search" runat="server" Text="查询" CssClass="scbtn" OnClick="btn_Search_Click" />
            </li>
        </ul>
        <asp:Repeater ID="rptList" runat="Server">
            <HeaderTemplate>
                <table class="tablelist" id="tblist">
                    <thead>
                        <tr>
                            <th>
                                序号
                            </th>
                            <th>
                                领用日期
                            </th>
                            <th>
                                发放单号
                            </th>
                            <th>
                                供应商
                            </th>
                            <th>
                                卡类型
                            </th>
                            <th>
                                发放数量/张
                            </th>
                            <th>
                                出库单号
                            </th>
                            <th>
                                销售机构/网点
                            </th>
                            <th>
                                领用人
                            </th>
                           
                            <th width="90px">
                                状态
                            </th>
                        </tr>
                    </thead>
                    <tbody>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td align="center" width="70px">
                        <input type="hidden" id="hf_Id" name="hf_id" value='<%# Eval("ID")%>,<%# Eval("issubmit")%>' />
                        <%# Container.ItemIndex+1+(WebPageIndex*WebPageSize-10) %>
                    </td>
                     <td align="center">
                        <%#string.Format("{0:d}", Eval("LEADINGDATE"))%>
                    </td>
                    <td align="center">
                        <%# Eval("SENDNO")%>
                        <a href="#" onclick="ShowRpt('<%# Eval("SENDNO")%>','<%# Eval("SalesName")%>','<%#string.Format("{0:d}", Eval("LEADINGDATE"))%>');">
                            <img src="../../../images/odc.png" style="margin-bottom: -5px;" /></a>
                    </td>
                    <td align="center">
                        <%# Eval("SUPPLIERSNAME")%>
                    </td>
                    <td align="center">
                        <%# Eval("cardtypeName")%>
                    </td>
                    <td align="right">
                        <%# Eval("SendCardTotal")%>
                    </td>
                    <td align="center">
                        <%# Eval("PUTOUTCARDNO")%>
                    </td>
                    <td align="center">
                        <%# Eval("SalesName")%>
                    </td>
                    <td align="center">
                        <%# Eval("LEADINGPERSON")%>
                    </td>
                    <td align="center">
                        <%#GetAppStatusName(Eval("ISSUBMIT").ToString())%>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </tbody></table>
            </FooterTemplate>
        </asp:Repeater>
        <webdiyer:AspNetPager ID="AspNetPager1" CssClass="paginator" CurrentPageButtonClass="cpb"
            runat="server" Width="100%" AlwaysShow="True" FirstPageText="首页" LastPageText="尾页"
            NextPageText="下一页" PageSize="10" PrevPageText="上一页" ShowCustomInfoSection="left"
            ShowInputBox="Never" CustomInfoTextAlign="Left" LayoutType="Table" OnPageChanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>
        <asp:HiddenField ID="hdf_Id" runat="server" />
    </div>
    <script type="text/javascript">
        $('.tablelist tbody tr:odd').addClass('odd');
    </script>
    </form>
</body>
</html>
